package com.crm.springcloudconfigdeptclient8001;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * 本服务的出yml文件外都是复制的provider-dept-8001模块
 * bootstrap.yml的profile=dev，访问：http://localhost:8001/dept/list，数据是cloudDB01
 * bootstrap.yml的profile=test，访问：http://localhost:8002/dept/list，数据是cloudDB02
 */

@SpringBootApplication
@EnableEurekaClient     //本服务启动后会自动注册进eureka服务中
@EnableDiscoveryClient  //服务发现
public class SpringcloudConfigDeptClient8001Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudConfigDeptClient8001Application.class, args);
    }

}
